/**
 * @author agstar
 * @date 2020/5/2 11:32
 */
public class Child extends Parent{
    private String name;

    public Child(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Child{" +
                "name='" + name + '\'' +
                "parentName='" + super.getParentName() + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
